package com.sc.nft.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class ZhiTanTradeVO {

    @ApiModelProperty("藏品id")
    @JsonProperty("id")
    private Long id;

    @ApiModelProperty("藏品编号")
    @JsonProperty("no")
    private Integer no;

    @ApiModelProperty("链上交易hash")
    @JsonProperty("tx_hash")
    private String txHash;

    @ApiModelProperty("买家钱包地址")
    @JsonProperty("to")
    private String to;

    @ApiModelProperty("卖家钱包地址")
    @JsonProperty("from")
    private String from;

    @ApiModelProperty("交易金额")
    @JsonProperty("trade_price")
    private String tradePrice;

    @ApiModelProperty("交易时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("trade_time")
    private Date tradeTime;

}
